package sicnu.cs.aps.service.impl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sicnu.cs.aps.domain.entity.OperationLog;
import sicnu.cs.aps.mapper.OperLogMapper;
import sicnu.cs.aps.service.IOperLogService;

/**
 * @author CaiKe
 * @date 2022/5/26 14:30
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class OperLogServiceImpl implements IOperLogService {

    private final OperLogMapper logMapper;

    /**
     * 保存日志
     *
     * @param log 日志对象
     */
    @Override
    public void saveOperLog(OperationLog log) {
        logMapper.insert(log);
    }
}